/**
 * 
 */
package org.codehaus.groovy.grails.plugins.autodelegator.delegator

import org.codehaus.groovy.grails.plugins.autodelegator.annotation.Delegate;

/**
 * @author <a href="mailto:franz.see@gmail.com">See, Franz Allan Valencia</a>
 *
 */
public class ClassWithDynamicMethod{
	 
	 @Delegate
	 def classWithUninvokedDynamicMethod = new ClassWithUninvokedDynamicMethod();

	 def dynamicHello() {
         'hello ClassWithDynamicMethod';
	 }
	 
	 ClassWithDynamicMethod() {
		 ClassWithDynamicMethod.metaClass.hello = this.&dynamicHello; 
	 }
	
}
